﻿@using Ed.Common;
@using Ed.Web.Helpers
@{
    Layout = null;
    //准备资料
    var life_pics = (object[])Utils.StringToObjectArray(Model.PInfoLifeimg, ',');
    //证书资料
    var cert_pics = (object[])Utils.StringToObjectArray(Model.PInfoCertimg, ',');
    var services = (List
<Ed.Entity.TPregnanterServiceRecord>
)ViewBag.ServiceRecord;
    var evals = (List<System.Collections.Generic.Dictionary<string, object>>)ViewBag.Eval;
}
@model Ed.Entity.TPregnanterInfo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>雪绒花_育婴师信息查看页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" conte="conte" nt="IE=Edge" />
    <script src="~/Themes/default/lib/jquery/jquery-1.11.1.min.js"></script>
    <script src="~/Themes/default/base/js/city.js"></script>
    <link href="~/Themes/default/yuesao/Common.css" rel="stylesheet" type="text/css">
    <script src="/Themes/default/lib/artDialog/dist/dialog-plus-min.js"></script>
    <link href="/Themes/default/lib/artDialog/css/ui-dialog.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/default/lib/function.js"></script>
    <link media="screen" type="text/css" href="~/Themes/default/yuesao/zoom.css" rel="stylesheet">
    <!--去除顶层加载中-->
    <script type="text/javascript">
        //=============================================================
        //去除顶层加载中
        $(document).ready(function () {
            //去除加载中
            if (undefined != top.dialog.list["show_loading"]) {
                top.dialog.list["show_loading"].close().remove();
                //showTopMsg("页面加载成功！", "温馨提示", "Success");
            }
        });
        //=====================================================================
    </script>
    <script src="/Themes/default/base/js/shengxiao.js"></script>
    <script src="/Themes/default/base/js/xingzuo.js"></script>
    <script src="/Themes/default/base/js/yuyingshiDes.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //初始化生肖属相
            init_sx_sx();
        });
        //初始化生肖属相
        function init_sx_sx() {
            var sx = $("#sx").html();
            var xz = $("#xz").html();
			var yuyingshides=$("#PInfoYdes").val();
			
            var sx_content = get_desc_by_sx(sx);
            var xz_content = get_desc_by_xz(xz);
			var yuyingshides_content=get_desc_by_desname(yuyingshides);
			
            $("#sx_content").html(sx_content);
            $("#xz_content").html(xz_content);
			
			$("#yuyingshides_content").html(yuyingshides_content);
        }
    </script>
</head>
<body>
    <div class="boxwarp">
        <div class="left_1" id="jiben1">
            <div class="touxiang comdiv">
                <img src="@Model.PInfoPhoto" width="178" height="178" alt="@Model.PInfoName" title="@Model.PInfoName" class="photo" />
            </div>
            <div class="xingming comdiv">
                <h1>@Model.PInfoName</h1>
            </div>
            <div class="gerenp comdiv">
                <b>我的个人宣言</b><br />
                @Model.PInfoMyNote
            </div>
            <div class="gongsip comdiv">
                <b>雪绒花对我评价</b><br />
                @Model.PInfoNote
            </div>
        </div>
        <div class="left_2">
            <div class="jiben comdiv">
                <p>
                    <strong>育婴师编号：</strong>@Model.PInfoCode <strong style="margin-left: 100px;">最后更新：</strong><span
                        class="money">@Model.PInfoLastdate</span></p>
                <p>@Model.PInfoAge @Model.PInfoNational @Model.PInfoXingzuo
                    @Model.PInfoShuxiang @Html.OptionsPalse(@Model.PInfoEducation, "1|本科及以上,2|大专,3|高中,4|初中及以下")
                    学历</p>
                <p>
                    户口所在<span class="money">@Model.PInfoPermanent</span>，现居住在<span class="money">@Model.PInfoAddress</span>，有<span
                        class="money">@Html.OptionsPalse(@Model.PInfoEdage, "1|1年以下,2|1-3年,3|3-5年,4|5-7年,5|7-9年,6|9年以上")</span>家政服务行业工作经验。</p>
                <p class="salary">
                    <strong>24小时参考工资：</strong><span class="money">@Model.PInfoYPrice 元/月</span> <strong
                        style="margin-left: 50px;">12小时参考工资：</strong><span class="money">@Model.PInfoYPrice12
                            元/月</span></p>
                <p>
                    <strong>综合评级：</strong><span style="color: red; font-size: 16px;">@Html.OptionsPalse(@Model.PInfoLevel, "1|★,2|★★,3|★★★,4|★★★★,5|★★★★★,6|★★★★★★,7|★★★★★★★,8|★★★★★★★★")</span><strong
                        style="margin-left: 50px;">特别技能：</strong> @Html.HiddenFor(model => model.PInfoClass)
                    <a id="S_PInfoClass"></a>
                </p>
                <p>
                    <strong>特长爱好：</strong>@Model.PInfoHobby</p>
                     @Html.HiddenFor(model => model.PInfoYdes)
                <p style="margin-top: 5px;" id="yuyingshides_content">
                </p>
            </div>
        </div>
        <div class="xingzuo comdiv" id="xingge2">
            <h5>
                生肖：<span id="sx">@Model.PInfoShuxiang.Replace("属", "")</span></h5>
            <div id="sx_content">
                <p>
                    为人正直，守规矩。不该做的事不做，不该问的话不问，选择这样的阿姨，不会增加客户的烦恼。</p>
                <p>
                    对上司、长辈敬重。面对比自己见识广、文化高的客户，这份敬重感也同样适用。</p>
                <p>
                    工作认真，有责任感，对雇主交代的事，总是超乎意料的完成。</p>
                <p>
                    防卫意识强，做事考虑全面，轻易不出差漏。相信客户都会需要一位做事效率高的好阿姨吧。</p>
            </div>
        </div>
        <div class="xingzuo comdiv">
            <h5>
                星座：<span id="xz">@Model.PInfoXingzuo.Replace("座", "")</span></h5>
            <div id="xz_content">
                <p>
                    性格外向、对人友善体贴。阿姨们会把小生命的诞生当成是很神圣的事。</p>
                <p>
                    心胸开阔、光明磊落、不拘小节、讲义气。大家都愿意和宽容大方的人交朋友，这些正能量会给狮子座的阿姨带来好运气，也会带给客户带来益处。</p>
                <p>
                    做事坚持原则和理念，阿姨不混账，和她讲道理即可。</p>
            </div>
        </div>
        <div class="zhengjian comdiv">
            <div class="list_img">
                <ul class="gallery">
                    @if (@Model.PInfoCertimg != "|")
                    {
                        foreach (var cert_pic in cert_pics)
                        {
                            try
                            {
                                var cert_infos = cert_pic.ToString().Split('|');
                                var big = cert_infos[1];
                                var small = cert_infos[2];
                                var des = cert_infos[3] ?? "暂无描述...";
                        <li><a class="pic" href="@big" title="">
                            <img src="@small" alt="" width="auto"
                        height="200px;" /></a> </li>
                            }
                            catch
                            {
                            }
                        }
                        <!--<script src="~/Themes/default/yuesao/zoom.min.js"></script>-->
                    }
                    else
                    {
                        <h6>
                            对不起，该育婴师暂无证件照</h6>
                    }
                    <div style="clear: both;">
                    </div>
                </ul>
              
            </div>
        </div>
        <div class="zhengjian comdiv" id="zhaopian3">
            <div class="list_img">
                <ul class="gallery">
                    @if (@Model.PInfoLifeimg != "|")
                    {
                        foreach (var life_pic in life_pics)
                        {
                            try
                            {
                                var life_infos = life_pic.ToString().Split('|');

                                var big = life_infos[1];
                                var small = life_infos[2];
                                var des = life_infos[3] ?? "暂无描述...";
                        <li><a class="pic" href="@big" title="">
                            <img src="@small" alt="" width="auto" height="210" /></a> </li>
                            
                            }
                            catch
                            {
                            }
                        }
                            
                    }
                    else
                    {
                        <h6>
                            对不起，该育婴师暂无生活照</h6>
                    }
                    <div style="clear: both;">
                    </div>
                </ul>
               <script src="~/Themes/default/yuesao/zoom.min.js"></script>     
            </div>
        </div>
        <div class="zhengjian comdiv">
            <h6>
                对不起，该育婴师暂无视频</h6>
        </div>
        <div ic="pingjia4">
        </div>
        @foreach (var evaltion in evals)
        {
            var evaImg = @Html.GetValue(evaltion, "PEvaImg").ToString();
            var ping_pics = (object[])Utils.StringToObjectArray(evaImg, ',');
            var evaImgbox = @Html.GetValue(evaltion, "PEvaImgbox");
            <div class="pingjia comdiv">
                <div class="fankui">
                    <a href="javascript:void(0);" onClick="showTopDialog('prev_img', '<div style=\'text-align:center;\'><img style=\'height:390px;\' src =\'@evaImgbox\' /></div>','查看大图',650,400,null, null);">
                        <img src='@evaImgbox' style="height:130px;width:110px;" /></a>
                </div>
                <div class="neirong">
                    <div class="content">
                        <p>@Html.GetValue(evaltion, "PEvaContent")</p>
                    </div>
                    <div class="title">
                        评价人：@Html.GetValue(evaltion, "PEvaPerson") <span style="margin-left: 20px;">@DateTime.Parse(@Html.GetValue(evaltion, "PEvaTime").ToString()).ToString("yyyy-MM-dd")</span>
                        <span style="margin-left: 20px;">评价级别：</span><span class="xing">@Html.OptionsPalse(int.Parse(@Html.GetValue(evaltion, "PEvaLevel").ToString()), "1|★,2|★★,3|★★★")</span>
                    </div>
                </div>
                <div class="tupian">
                    <div class="list_img">
                        <ul>
                            @foreach (var ping_pic in ping_pics)
                            {
                                try
                                {
                                    var ping_infos = ping_pic.ToString().Split('|');
                                    var big = ping_infos[1];
                                    var small = ping_infos[2];
                                    var des = ping_infos[3] ?? "暂无描述...";
                                <li><a class="pic" href="javascript:void(0);" title="" onClick="showTopDialog('prev_img', '<div style=\'text-align:center;\'><img style=\'height:390px;\' src =\'@small\' /></div>','查看大图',650,400,null, null);">
                                    <img class="img2" src="@small" alt="" title="@des"/></a> </li>
                                }
                                catch
                                {
                                }
                            }
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                </div>
            </div>
        }
        <div class="clear">
        </div>
    </div>
    <div class="shuqian">
        <a href="#jiben1" title="基本信息">基本信息</a> <a href="#xingge2" title="性格证件">性格证件</a>
        <a href="#zhaopian3" title="照片视频">照片视频</a> <a href="#pingjia4" title="评价记录">评价记录</a>
    </div>
</body>
</html>
